<?php require 'gauche.tpl.php';?>
	<div id="content">
	    <div>
	<form method="post" name="FrmEquipe" id="FrmEquipe">
    	    <h2>Détail événement</h2>
    		<h4><img class="icone" alt="icone" src="<?php echo $detail['image']?>" /><?php echo $detail['nom']?> : <?php echo $dateEvent?>
    		<?php if (count($filtres) > 0 ) {?>
    		<img src="<?php echo $baseUri?>/images/filtre.png" title="afficher les filtres" alt="filtres" id="filtres" />
    		<div id="divChoixFiltre">
    		  <ul>
    		      <li id="filtre_false">reset</li>
    		      <?php foreach($filtres as $id => $filtre) {?>
    		      <li id="filtre_<?php echo $id;?>"><?php echo $filtre['nom']?></li>
    		      <?php }?>
    		  </ul>
    		</div>
    		<?php }?></h4>
    		<div id="detail">
    		<div class="pretends">
        		<div class="inscrits">
        		<h2>Inscrits</h2>
        		    <?php foreach ($inscrits as $accountId => $tanks) {?>
        		          <div id="<?php echo $accountId; ?>">
    		                  <h4><?php echo $pseudos[$accountId]['nickname']?></h4>
        		          <?php foreach ($tanks as $tank) {?>
        		              <div class="teamTank"><img id="<?php echo $accountId.'|'.$tank['tank_id'].'|'.$pseudos[$accountId]['nickname'].'|'.$tank['level'];?>" name = "<?php echo $accountId.'|'.$tank['tank_id'].'|'.$pseudos[$accountId]['nickname'].'|'.$tank['level'];?>" alt="<?php echo $tank['name']?>" src="<?php echo $tank['image']?>" class="minitank <?php echo $tank['nation']?>" title="<?php echo $tank['name']?>"/><div class="scoreTeam"><?php echo $tank['score']?></div ></div>  
        		          <?php }?>
        		          </div>
        		        
        		    <?php } ?>
        		</div> 
        		<div class="inscrits">
        		<h2>Backup</h2>
        		    <?php foreach ($backup as $accountId => $tanks) {?>
        		          <div id="<?php echo $accountId; ?>">
    		                  <h4><?php echo $pseudos[$accountId]['nickname']?></h4>
        		          <?php foreach ($tanks as $tank) {?>
        		          <div class="teamTank"><img id="<?php echo $accountId.'|'.$tank['tank_id'].'|'.$pseudos[$accountId]['nickname'].'|'.$tank['level'];?>" alt="<?php echo $tank['name']?>" src="<?php echo $tank['image']?>" class="minitank <?php echo $tank['nation']?>" title="<?php echo $tank['name']?>"/><div class="scoreTeam"><?php echo $tank['score']?></div ></div>
        		          <?php }?>
        		          </div>
        		        
        		    <?php } ?>
        		</div>    
        		<div class="inscrits">
        		<h2>Absents</h2>
        		    <?php foreach ($refus as $accountId => $tanks) {?>
        		          <div id="<?php echo $accountId; ?>">
    		                  <h4><?php echo $pseudos[$accountId]['nickname']?></h4>
        		          <!-- 
        		          <?php foreach ($tanks as $tank) {?>
        		              <img id="<?php echo $tank['account_id'].'|'.$tank['tank_id'];?>" alt="<?php echo $tank['name']?>" src="<?php echo $tank['image']?>" class="minitank <?php echo $tank['nation']?>" title="<?php echo $tank['name']?>"/>  
        		          <?php }?>
        		           -->
        		          </div>
        		        
        		    <?php } ?>
        		</div>
        		</div>
        		<div id="Team" class="Team" style="height:70px">
        		    <h2>Equipe (<span id="points">0</span> / <span id="limite"><?php echo $detail['limite']?></span>)</h2>
        		    <ul><?php foreach ($team as $membre) {?><li><div class="teamTank"><img id="<?php echo $membre['account_id'].'|'.$membre['tank_id'].'|'.$pseudos[$membre['account_id']]['nickname'].'|'.$membre['level'];?>" name = "<?php echo $membre['account_id'].'|'.$membre['tank_id'].'|'.$pseudos[$membre['account_id']]['nickname'].'|'.$membre['level'];?>" alt="<?php echo $membre['name']?>" src="<?php echo $membre['image']?>" class="minitank <?php echo $membre['nation']?>" title="<?php echo $membre['name']?>"/><div class="scoreTeam"><?php echo $membre['score']?></div ></div> <?php echo $pseudos[$membre['account_id']]['nickname'] ?></li><?php }?></ul>
        		    <div class="boutons">
        		    <input type="hidden" name="TeamMembers" id="TeamMembers" value="" />
        		    <?php if ($creationTeam === true) {?>
        		      <input type="submit" id="recordTeam" value="Enregistrer l'équipe" />
        		      <?php } ?>
        		    </div>
    		    </div>
		    </div>
		</form>
		</div>
	</div>